package cn.tedu._06article.pojo.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;
import org.springframework.validation.annotation.Validated;

@Data
public class ArticleParam {
    @NotNull(message = "标题不能为空")
    @Schema(description = "标题",required = true)
    private String title;
    @Size(min = 10,max = 9999,message = "内容长度为10-9999")
    @Schema(description = "内容",required = true)
    private String content;
}
